<template>
  <div id="detailBanner">
    <div class="banner">
      <div class="container">
        <div class="logo">
          <img class="library-sign" src="../../assets/login/logo.png" alt=""/>
        </div>
        <div class = "userInfo">
          <div class="avatar">
            <img  src="../../assets/login/user.png"  alt=""/>
          </div>

          <div class="userName">username</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "DetailBanner"
}
</script>

<style lang="less" scoped>
#detailBanner {
  width: 100%;
  .banner {
    height: 89px;
    background: #FFF;
    width: 100%;
    border-bottom: #0976CD solid 4px;
    .container {
      display:flex;
      /* 弹性布局 */
      margin: 0 auto;
      justify-content:space-between;
      //flex-wrap: nowrap;
      //align-content: space-between;  /* 竖向中间自动空间 */
      line-height: 89px;
      .logo {
        margin-left: 60px;
      }
      .userInfo{
        display:flex;
        margin-right: 60px;
        line-height: 89px;
        justify-content:space-between;
        //line-height: 89px;
        //align-content: space-between;
        .avatar {
          width: 40px;
          height: 40px;
          img {
            width: 40px;
            height: 40px;
            background: #EEEEEE;
            border-radius: 50%;
          }
        }
        .userName {
          font-weight: 400;
          color: #4E4E4E;
          font-size: 16px;
          margin-left: 6px;
        }
      }
    }
  }
}
</style>
